<!-- app/View/Users/add.ctp -->

<div id="conteudo">
    <? echo ($this->Session->flash()); ?>
    <div class="users form">
    <?php echo $this->Form->create('User');?>
        <fieldset>
            <legend><?php echo __('Add User'); ?></legend>
            <?php echo $this->Form->input('name');
            echo $this->Form->input('username');
            echo $this->Form->input('password');
            echo $this->Form->input('cpf', array('class'=>'cpf'));
            echo $this->Form->input('email');
            echo $this->Form->input('telephone', array('class'=>'tel'));
            echo $this->Form->input('institution_id', array('options'=>$instituions_list));
            echo $this->Form->input('role', array(
                'options' => array('Administrador' => 'Admin', 'Operador' => 'Operador', 'Autorizante' => 'Autorizante')
            ));
        ?>
        </fieldset>
    <?php echo $this->Form->end(__('Submit'));?>
    </div>
</div>